package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.ColumnType;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 设备清单 sys_device_list
 *
 * @author ljf
 * @date 2021-12-04 11:28:14
 */
public class SysDeviceList extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备清单主键 */
    @Excel(name = "设备序号", cellType = ColumnType.NUMERIC)
    private Long listId;

    /** 项目id */
    @Excel(name = "项目编号", type = Excel.Type.IMPORT)
    private Long subId;

    /** 部门id */
    @Excel(name = "部门编号")
    private String deptId;

    /** 采购类型 */
    @Excel(name = "采购类型", readConverterExp = "0=公开招标,1=邀标,2=询价,3=谈判,4=其他")
    private String purchaseType;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 设备型号 */
    @Excel(name = "设备型号")
    private String deviceModel;

    /** 设备参数 */
    @Excel(name = "设备参数")
    private String deviceParam;

    /** 采购数量 */
    @Excel(name = "采购数量")
    private String num;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    /** 项目名称 */
    @Excel(name = "项目名称", targetAttr = "itemName", type = Excel.Type.EXPORT)
    private SysInformation subInfo;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getListId() {
        return listId;
    }

    public void setListId(Long listId) {
        this.listId = listId;
    }

    public Long getSubId() {
        return subId;
    }

    public void setSubId(Long subId) {
        this.subId = subId;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getPurchaseType() {
        return purchaseType;
    }

    public void setPurchaseType(String purchaseType) {
        this.purchaseType = purchaseType;
    }

    @NotBlank(message = "设备名称不能为空")
    @Size(min = 0, max = 100, message = "设备名称不能超过100个字符")
    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceModel() {
        return deviceModel;
    }

    public void setDeviceModel(String deviceModel) {
        this.deviceModel = deviceModel;
    }

    public String getDeviceParam() {
        return deviceParam;
    }

    public void setDeviceParam(String deviceParam) {
        this.deviceParam = deviceParam;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public SysInformation getSubInfo() {
        return subInfo;
    }

    public void setSubInfo(SysInformation subInfo) {
        this.subInfo = subInfo;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("listId", getListId())
                .append("subId", getSubId())
                .append("deptId", getDeptId())
                .append("purchaseType", getPurchaseType())
                .append("deviceName", getDeviceName())
                .append("deviceModel", getDeviceModel())
                .append("deviceParam", getDeviceParam())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
